{config_load file=global.conf}
{config_load file="_form_register.conf" section="`$lang`"}

<script type="text/javascript" language="JavaScript" src="{#scripts_dir#}/fValidate/fValidate.lang-enUS.js"></script>
<script type="text/javascript" language="JavaScript" src="{#scripts_dir#}/fValidate/fValidate.config.js" ></script>
<script type="text/javascript" language="JavaScript" src="{#scripts_dir#}/fValidate/fValidate.core.js" ></script>
<script type="text/javascript" language="JavaScript" src="{#scripts_dir#}/fValidate/fValidate.validators.js" ></script>
<link href="{#styles_dir#}/form.css" rel="stylesheet" type="text/css">


<script type="text/javascript" language="JavaScript">
{literal}
function getTimezoneName() {
{/literal}

tmSummer = new Date(Date.UTC(2005, 6, 30, 0, 0, 0, 0));
	so = -1 * tmSummer.getTimezoneOffset();
	tmWinter = new Date(Date.UTC(2005, 12, 30, 0, 0, 0, 0));
	wo = -1 * tmWinter.getTimezoneOffset();

	{section name=timezone loop=$timezones}

    if ({$timezones[timezone].oSum} == so && ({$timezones[timezone].oSum} +{$timezones[timezone].oWin}) == wo)
    {literal}{{/literal} var tZoneID = '{$timezones[timezone].id}'; var tZoneName = '{$timezones[timezone].descr}'; {literal}}{/literal}

    {/section}

    //document.getElementById('timezones').value = tZoneID;
    document.getElementById('timezones').value = 29;
    return true;

{literal}}{/literal}


</script>

{if $err_str}
		<div class='error'>{$err_str} </div>
{/if}
<ul id="errors">   </ul>

	<p>{#_form_register__formHeader#}{*Fill out the form below to subscribe for the IntelliForex free 14-day trial.*}</p>


<form method="post" enctype="multipart/form-data"  onSubmit="return validateForm( this, 1, 0, 0, 1, 16); " id="frm_profile" name="frm_profile">
<table class="form" width="380" height="98" border="0" cellpadding="0" cellspacing="0">
<tr><td width="10" height="10"></td></tr>
<tr>
	<td width="10"></td>
	<td>
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td><div align="right"><label for="data_name">{#_form_register__labelName#}&nbsp;</label></div></td>
        <td width="5"></td>
        <td width="200"><input class="input" type="text" name="data_name" value="{$data->name}" alt="blank"
			emsg="{#_form_register__validName#}{*Please specify your first name*}"
			onFocus="javascript: input_focus(this);" onBlur="javascript: input_blur(this);"
			width="200" size="15" height="14" input="input" /></td>
	</tr>
	<tr><td height="5"></td></tr>
	<tr>
		<td><div align="right"><label for="data_login">{#_form_register__labelEmail#}&nbsp;</label></div></td>
		<td></td>
		<td><input class="input" type="text" name="data_login" value="{$data->login}" alt="email"
			emsg="{#_form_register__validEmail#}{*E-mail entered is not valid*}"
			onFocus="javascript: input_focus(this);" onBlur="javascript: input_blur(this);"
			width="200" size="15" height="14" input="input" /></td>
	</tr>
	<tr style="display:none">
		<td><div align="right"><label for="data_login">{#_form_register__labelTimezone#}&nbsp;</label></div></td>
		<td></td>
		<td><select class="selectStretch" id="timezones" name="data_timezone" value="{$data->timezone}" disabled="disabled">
			{section name=timezone loop=$timezones}
				{if $timezones[timezone].offsetMin>=0}
					{assign var="sign" value="+"}
				{else}
					{assign var="sign" value=""}
				{/if}
				<option value="{$timezones[timezone].id}"
				{if $timezones[timezone].id==29}selected="selected"{/if}
				>GMT{$sign}{$timezones[timezone].offsetHrs} {$timezones[timezone].descr}</option>
			{/section}
		</select></td>
	</tr>
	<tr><td height="5"></td></tr>
	<tr>
		<td><div align="right"><label for="data_pass">{#_form_register__labelPassword#}&nbsp;</label></div></td>
		<td></td>
		<td><input class="input" type="password" name="data_pass" id="data_pass"  alt="length|1"
			emsg="{#_form_register__validPassword#}{*Minimal password length is 5 characters*}"
			onFocus="javascript: input_focus(this);" onBlur="javascript: input_blur(this);"
			width="400px" size="15" height="14" input="input" /></td>
	</tr>
	<tr><td height="5"></td></tr>
	<tr>
		<td><div align="right"><label for="data_pass_confirm"><nobr>{#_form_register__labelConfirmPassword#}&nbsp;</nobr></label></div></td>
		<td></td>
		<td><input class="input" type="password" name="data_pass_confirm" id="data_pass_confirm"  alt="equalto|data_pass"
			emsg="{#_form_register__validConfirmPassword#}{*Password does not match the confirm password*}"
			onFocus="javascript: input_focus(this);" onBlur="javascript: input_blur(this);"
			width="300" size="15" height="14" input="input" /></td>
	</tr>
	<tr><td height="5"></td></tr>
	<tr>
		<td colspan="3" align="right"><input class="button" type="submit"  style="width: 110px" name="Submit" value="{#_form_register__btnSubmit#}{*Sign Up*}"></td>
   	</tr>
	</table></td>
    <td width="30"></td>
</tr>
<tr>
	<td colspan="3" height="10"></td>
</tr>
</table>
</form>

<br>

<script type="text/javascript" language="JavaScript"> getTimezoneName(); </script>
